package com.yidu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.dao.ListenRoleMapper;
import com.yidu.domain.ListenRole;
import com.yidu.service.ListenRoleService;

/**
 * 
 * 类注释:角色服务实现类
 * @author wpy
 * 2018年11月27日上午11:42:33
 */
@Service
public class ListenRoleServiceImpl implements ListenRoleService {
	
	@Resource
	public ListenRoleMapper roleDao;
	
	@Override
	public int deleteRole(String roleId) {
		return roleDao.deleteByPrimaryKey(roleId);
	}

	@Override
	public List<ListenRole> selectRole(Map<String, Object> map) {
		return roleDao.selectRole(map);
	}

	@Override
	public int selectCount(Map<String, Object> map) {
		return roleDao.selectCount(map);
	}

	@Override
	public int updateByPrimaryKeySelective(ListenRole role) {
		return roleDao.updateByPrimaryKeySelective(role);
	}

	@Override
	public ListenRole selectByPrimaryKey(String roleId) {
		return roleDao.selectByPrimaryKey(roleId);
	}
	/**
	 * 无参查询所有
	 * @author LiuXiang
	 */
	@Override
	public List<ListenRole> querAll() {
		return roleDao.querAll();
	}

	@Override
	public int insertSelective(ListenRole role) {
		return roleDao.insertSelective(role);
	}
}
